package edu.utexas.ipc;

public class Message {
	public final int sourceID;
	public final int destID;
	public final String tag;
	public final String timestamp;
	public final String appData;
	
	Message(int sourceID, int destID, String tag, String ts, String appData) {
		this.sourceID = sourceID;
		this.destID = destID;
		this.tag = tag;
		this.timestamp = ts;
		this.appData = appData;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(sourceID + " ");
		sb.append(destID + " ");
		sb.append(tag + " ");
		sb.append(timestamp + " ");
		sb.append(appData);
		return sb.toString();
	}
}
